package com.zxy.springboot_vue.controller;


import com.zxy.springboot_vue.entity.City;
import com.zxy.springboot_vue.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lenovo
 * @since 2021-10-19
 */
@RestController
@RequestMapping("/city")
public class CityController {

    @Autowired
    private ICityService cityService;

    @RequestMapping("getCity")
    public List<City> getCity(City city){
        List<City> list = cityService.getCity(city);
        return list;
    }
}
